<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "test_img".
 *
 * @property int $id
 * @property int $userid 用户id
 * @property string $upload_time 时间
 * @property string $img_address 图片地址
 * @property string $app_address app地址
 * @property string $ios_address ios地址
 */
class TestImg extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'test_img';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['userid', 'upload_time', 'img_address', 'app_address', 'ios_address'], 'required'],
            [['userid'], 'integer'],
            [['img_address', 'app_address', 'ios_address'], 'string'],
            [['upload_time'], 'string', 'max' => 16],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'userid' => 'Userid',
            'upload_time' => 'Upload Time',
            'img_address' => 'Img Address',
            'app_address' => 'App Address',
            'ios_address' => 'Ios Address',
        ];
    }
}
